package com.ruoyi.book.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书籍管理对象 t_book
 * 
 * @author ruoyi
 * @date 2022-01-04
 */
public class TBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long bookId;

    /** 书籍编号 */
    @Excel(name = "书籍编号")
    private String bookNum;

    /** 书籍价格 */
    @Excel(name = "书籍价格")
    private String bookPrice;

    /** 书籍总数量 */
    @Excel(name = "书籍总数量")
    private String bookSum;

    /** 书籍剩余数量 */
    private String bookSurplus;

    /** 书籍名称 */
    @Excel(name = "书籍名称")
    private String bookName;

    /** 书籍作者 */
    @Excel(name = "书籍作者")
    private String bookWriter;

    /** 书籍出版社 */
    @Excel(name = "书籍出版社")
    private String publishHouse;

    /** 出版时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 附件id */
    @Excel(name = "附件id")
    private String attachmentId;

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookNum(String bookNum) 
    {
        this.bookNum = bookNum;
    }

    public String getBookNum() 
    {
        return bookNum;
    }
    public void setBookPrice(String bookPrice) 
    {
        this.bookPrice = bookPrice;
    }

    public String getBookPrice() 
    {
        return bookPrice;
    }
    public void setBookSum(String bookSum) 
    {
        this.bookSum = bookSum;
    }

    public String getBookSum() 
    {
        return bookSum;
    }
    public void setBookSurplus(String bookSurplus) 
    {
        this.bookSurplus = bookSurplus;
    }

    public String getBookSurplus() 
    {
        return bookSurplus;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setBookWriter(String bookWriter) 
    {
        this.bookWriter = bookWriter;
    }

    public String getBookWriter() 
    {
        return bookWriter;
    }
    public void setPublishHouse(String publishHouse) 
    {
        this.publishHouse = publishHouse;
    }

    public String getPublishHouse() 
    {
        return publishHouse;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setAttachmentId(String attachmentId)
    {
        this.attachmentId = attachmentId;
    }

    public String getAttachmentId()
    {
        return attachmentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookNum", getBookNum())
            .append("bookPrice", getBookPrice())
            .append("bookSum", getBookSum())
            .append("bookSurplus", getBookSurplus())
            .append("bookName", getBookName())
            .append("bookWriter", getBookWriter())
            .append("publishHouse", getPublishHouse())
            .append("publishTime", getPublishTime())
            .append("attachmentId", getAttachmentId())
            .toString();
    }
}
